package com.mmy.service.impl.hotel;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mmy.dao.hotel.VHotelBaseRepository;
import com.mmy.domain.hotel.VHotelBase;
import com.mmy.service.hotel.VHotelBaseService;

@Service
public class VHotelBaseServiceImpl implements VHotelBaseService {
	@Autowired
	private VHotelBaseRepository vHotelBaseRepository;

	/* 查询所有酒店信息 */
	public List<VHotelBase> findALL() {
		// TODO Auto-generated method stub
		return vHotelBaseRepository.findAll();
	}

	/* 按搜索条件查询 */
	public List<VHotelBase> findBySearch(String strHotelName, String strZoneID, String strRate, String strType) {
		// TODO Auto-generated method stub
		return vHotelBaseRepository.findBySearch(strHotelName, strZoneID, strRate, strType);
	}

	/* 按ID查询 */
	public VHotelBase findByHotelID(int iHotelID) {
		// TODO Auto-generated method stub
		return vHotelBaseRepository.findByHotelID(iHotelID);
	}

	/* 查询 全部 */
	public List<VHotelBase> findAll() {
		// TODO Auto-generated method stub
		return vHotelBaseRepository.findAll();
	}

	/* 前台默认通过区域查询 */
	public List<VHotelBase> findByZoneID(int zoneID) {
		// TODO Auto-generated method stub
		return vHotelBaseRepository.findByZoneID(zoneID);
	}

	/* 前台查询 */
	public List<VHotelBase> findBySearchHotel(String strHotelName, String strZoneID, String strType) {
		// TODO Auto-generated method stub
		return vHotelBaseRepository.findBySearchHotel(strHotelName, strZoneID, strType);
	}

}
